From: Greg Sabino Mullane Date: Wed, 28 Mar 2007 19:54:45 +0000 (+0000) Subject: Much more elegant solution for functions that are not sending a timestamp, thanks... X-Git-Tag: 1.31.0-rc.0~53554 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=21b2a0ce0174a4d808a4cb20ede55ef42b9e76b9;p=lhc%2Fweb%2Fwiklou.git Much more elegant solution for functions that are not sending a timestamp, thanks to Brion. --- diff --git a/languages/Language.php b/languages/Language.php index a23c3045ab..4f217918c6 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -753,6 +753,9 @@ class Language { */ function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false) { $this->load(); + + $ts = wfTimestamp( TS_MW, $ts ); + if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }